package com.cjkj.purchase.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.cjkj.purchase.mapper.PurchaseInfoCountMapper;
import com.cjkj.purchase.domain.PurchaseInfoCount;
import com.cjkj.purchase.service.IPurchaseInfoCountService;

/**
 * 采购信息月统计Service业务层处理
 * 
 * @author cjkj
 * @date 2025-02-20
 */
@Service
public class PurchaseInfoCountServiceImpl implements IPurchaseInfoCountService 
{
    @Resource
    private PurchaseInfoCountMapper purchaseInfoCountMapper;

    /**
     * 查询采购信息月统计
     * 
     * @param countId 采购信息月统计主键
     * @return 采购信息月统计
     */
    @Override
    public PurchaseInfoCount selectPurchaseInfoCountByCountId(Long countId)
    {
        return purchaseInfoCountMapper.selectPurchaseInfoCountByCountId(countId);
    }

    /**
     * 查询采购信息月统计列表
     * 
     * @param purchaseInfoCount 采购信息月统计
     * @return 采购信息月统计
     */
    @Override
    public List<PurchaseInfoCount> selectPurchaseInfoCountList(PurchaseInfoCount purchaseInfoCount)
    {
        return purchaseInfoCountMapper.selectPurchaseInfoCountList(purchaseInfoCount);
    }

    /**
     * 新增采购信息月统计
     * 
     * @param purchaseInfoCount 采购信息月统计
     * @return 结果
     */
    @Override
    public int insertPurchaseInfoCount(PurchaseInfoCount purchaseInfoCount)
    {
        return purchaseInfoCountMapper.insertPurchaseInfoCount(purchaseInfoCount);
    }

    /**
     * 修改采购信息月统计
     * 
     * @param purchaseInfoCount 采购信息月统计
     * @return 结果
     */
    @Override
    public int updatePurchaseInfoCount(PurchaseInfoCount purchaseInfoCount)
    {
        return purchaseInfoCountMapper.updatePurchaseInfoCount(purchaseInfoCount);
    }

    /**
     * 批量删除采购信息月统计
     * 
     * @param countIds 需要删除的采购信息月统计主键
     * @return 结果
     */
    @Override
    public int deletePurchaseInfoCountByCountIds(Long[] countIds)
    {
        return purchaseInfoCountMapper.deletePurchaseInfoCountByCountIds(countIds);
    }

    /**
     * 删除采购信息月统计信息
     * 
     * @param countId 采购信息月统计主键
     * @return 结果
     */
    @Override
    public int deletePurchaseInfoCountByCountId(Long countId)
    {
        return purchaseInfoCountMapper.deletePurchaseInfoCountByCountId(countId);
    }
}
